package com.yyp.car.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.car.Idao.IGroundDao;
import com.yyp.car.Iservice.IGroundService;
import com.yyp.car.model.Ground;

@Service("groundService")
public class GroundService implements IGroundService {
	@Resource(name="groundDao")
	private IGroundDao groundlDao;

	@Override
	public Ground addGround(Ground ground) {
		return groundlDao.add(ground);
	}

	@Override
	public void updateGround(Ground ground) {
		groundlDao.update(ground);
	}

	@Override
	public Ground load(int id) {
		return groundlDao.load(id);
	}

	@Override
	public void delete(int id) {
		groundlDao.delete(id);
	}

	@Override
	public List<Ground> listGround() {
		return groundlDao.listGround();
	}

	@Override
	public Ground findGroundByid(int id) {
		return groundlDao.findGroundByid(id);
	}

}
